<!--
  @author chongw
  @since 2021-05-28 17:05:29
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss2">
    <title>规则管理</title>
</head>
<body>
<div class="layui-fluid">

    <div th:replace="event/_crumb::crumb"/>

    <div class="layui-card">

        <div class="layui-card-body">

            <div th:replace="event/_tab::tab"/>
            <div class="layui-tab-content">
                <form method="post" class="layui-form" id="zmn-form" th:action="|/brs/engineer/rule/sales/list.action?eventId=${eventId}|" lay-filter="zmn-form">
                    <div class="layui-form" th:include="engineer/rule/sales/_query :: query "></div>
                </form>
                <div class="layui-card-body">
                    <div th:replace="engineer/rule/sales/_table::table"/>
                    <script type="text/html" id="zmn-table-tool">
                        <div class="layui-btn-container">
                            <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                            <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用</button>
                            <button class="layui-btn layui-btn-sm layui-btn-primary" lay-event="add">添加规则</button>
                        </div>
                    </script>
                </div>
            </div>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    let json = {
        eventId: [[${eventId}]],
        plat: [[${vo.plat}]],
        orgThrId: [[${vo.orgThrId}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        ZMN_URL_ENV: [[${ZMN_URL_ENV}]]
    };

    layui.config({
        base: "/static/lay/",
        version: webApp.version
    }).extend({
        index: "lib/index",
        brs_engineer_rule_sales_list: "engineer/rule/sales/zmn.engineer.rule.sales.list",
    }).use(['index', 'brs_engineer_rule_sales_list']);

</script>
</body>
</html>